all: client server
client: proto_client.cc request.pb.cc ../include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz
server: proto_server.cc request.pb.cc ../include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++11 -I../include -L../lib -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz
# -I 指定头文件目录 -L指定库的位置
.PHONY:clean
clean:
	rm -f server client